package com.boilermaker.springIoC;

import org.springframework.stereotype.Component;

@Component
public class NewsInformation {
    public String name;
    public String Area;

    public void setName(String name) {
        this.name = name;
    }

    public void setArea(String area) {
        Area = area;
    }

    @Override
    public String toString() {
        return "NewsInformation{" +
                "name='" + name + '\'' +
                ", Area='" + Area + '\'' +
                '}';
    }
}
